package com.kedsoft.andaily.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 执行人员当前位置
 * </p>
 *
 * @author LGP
 * @since 2019-05-16
 */
@TableName("pt_cunsumer_pos")
public class CunsumerPos implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer cunsumerid;
    private String cunsumername;
    private Double cunsumerlng;
    private Double cunsumerlat;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date uptime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCunsumerid() {
        return cunsumerid;
    }

    public void setCunsumerid(Integer cunsumerid) {
        this.cunsumerid = cunsumerid;
    }

    public String getCunsumername() {
        return cunsumername;
    }

    public void setCunsumername(String cunsumername) {
        this.cunsumername = cunsumername;
    }

    public Double getCunsumerlng() {
        return cunsumerlng;
    }

    public void setCunsumerlng(Double cunsumerlng) {
        this.cunsumerlng = cunsumerlng;
    }

    public Double getCunsumerlat() {
        return cunsumerlat;
    }

    public void setCunsumerlat(Double cunsumerlat) {
        this.cunsumerlat = cunsumerlat;
    }

    public Date getUptime() {
        return uptime;
    }

    public void setUptime(Date uptime) {
        this.uptime = uptime;
    }

    @Override
    public String toString() {
        return "CunsumerPos{" +
        ", id=" + id +
        ", cunsumerid=" + cunsumerid +
        ", cunsumername=" + cunsumername +
        ", cunsumerlng=" + cunsumerlng +
        ", cunsumerlat=" + cunsumerlat +
        ", uptime=" + uptime +
        "}";
    }
}
